from turtle import *
negr = Turtle()


def figure(x,y, size):
    negr.penup()
    negr.setpos(-500 + x, 500 - y)
    negr.pendown()
    negr.color("blue")
    negr.fillcolor("green")
    negr.begin_fill()
    negr.forward(size)
    negr.right(90)
    negr.forward(size)
    negr.left(90)
    negr.forward(size)
    negr.right(90)
    negr.forward(size)
    negr.right(90)
    negr.forward(size)
    negr.left(90)
    negr.forward(size)
    negr.right(90)
    negr.forward(size)
    negr.right(90)
    negr.forward(3 * size)
    negr.right(90)
    negr.end_fill()


screen = Screen()
screen.screensize(1000, 1000, bg="gray")
s = 25
x=int(input())
y=int(input())
t=int(input())
figure(x, x, t * s)
